package com.guanyua.eims.pojo.salegoods;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 任建波
 * @since 2020-10-18
 */
@Data
public class PurchaseGoodsAddForm implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "商品")
    @Size(min = 1)
    private List<Goods> goodsList;

    @Data
    public static class Goods {

        @ApiModelProperty(value = "商品id", required = true)
        @NotNull
        private Long goodsId;

        @ApiModelProperty(value = "数量", required = true)
        @NotNull
        private Integer quantity;

    }

}
